﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
              Student student=new Student();
                //这里易中天,50是实参
               student.English("易中天", 50);
                

            //引用参数用ref关键字定义 一个参数
            RefClass refClass = new RefClass();
            int a = 20;
            bool result = refClass.Judge(ref a);
            Console.WriteLine("验证结果是：" + result);


            //输出参数用out定义 相比于引用参数，输出的参数中增加一个输出参数，用于返回判断的结果
            OutClass outClass = new OutClass();
            bool rs;
            outClass.Judge(19, out rs);
            //可简写成outClass.Judge(19, out bool rs);
            Console.WriteLine("验证结果是：" + rs);
        }
    }
}
